package com.b2b.service.impl;

import com.b2b.mapper.InquiryQuotationMapper;
import com.b2b.model.entity.InquiryQuotation;
import com.b2b.service.InquiryQuotationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class InquiryQuotationServiceImpl extends BaseServiceImpl<InquiryQuotation> implements InquiryQuotationService {
    private final InquiryQuotationMapper inquiryQuotationMapper;
    @Autowired
    public InquiryQuotationServiceImpl(InquiryQuotationMapper inquiryQuotationMapper){
        this.inquiryQuotationMapper = inquiryQuotationMapper;
    }

    public List<InquiryQuotation> selectQuotationGoodsByCompanyId (Integer companyId){
        return inquiryQuotationMapper.selectQuotationGoodsByCompanyId(companyId);
    }
}
